<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="users" />
<!DOCTYPE HTML>
<html>
	<head>
		<%@ include file="/common/include/title.jsp"%>
		<title>查看用户 - 高档茶叶与茶具销售系统</title>
	</head>
	<body>
		<nav class="breadcrumb">
			<i class="Hui-iconfont">&#xe67f;</i> 首页 
			<span class="c-gray en">&gt;</span> 系统管理 
			<span class="c-gray en">&gt;</span> 用户查看
			<a class="btn btn-success radius r"
				style="line-height: 1.6em; margin-top: 3px"
				href="javascript:location.replace(location.href);" title="刷新">
				<i class="Hui-iconfont">&#xe68f;</i>
			</a>
		</nav>
		<article class="page-container">
			<form class="form form-horizontal" id="formSubmit" action="${rootPath }/back/UsersBackServlet?method=usersUpdateSubmit">
				<input type="hidden" name="id" value="${users.id }">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red"></span>邮箱：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${users.email }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">昵称：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${users.nickName}
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">真实姓名：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${users.trueName }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">手机号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${users.phone}
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">生日：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${users.birthday }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">性别：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${users.sexStr }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">地址：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${users.address }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">折扣：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${users.discount }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">类型：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${users.userTypeStr }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">状态：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${users.statusStr }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">创建时间：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${users.createTime }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">更新时间：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${users.updateTime }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">上次登陆时间：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${users.lastLoginTime }
					</div>
				</div>
				<%-- <div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">头像：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<a target="_blank" href="${requestScope.websiteFileUrl }${users.photoPath }">
							<c:choose>
								<c:when test="${users.photoPath != null && users.photoPath != ''}">
									<img src="${requestScope.websiteFileUrl }${users.photoPath }" 
										class="img-fluid rounded mx-auto" width="200" height="200">
								</c:when>
								<c:otherwise>
									<img src="${rootPath}/img/no_pic.png" 
										class="img-fluid rounded mx-auto" width="200" height="200">
								</c:otherwise>
							</c:choose>
						</a>
					</div>
				</div> --%>
			</form>
		</article>
		<%@ include file="/common/include/footer.jsp" %>
	</body>
</html>